package com.zhou.spring.cloud.balancer.feign.mode;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * @author 18576666986
 * @description
 * @createDate 2022/7/21 19:57
 */
@Data
public class SocialInsuranceRes {

    private WrapperRes data;

    @Data
    public static class WrapperRes {

        /**
         * "status": true,
         * "code": 0,
         * "data
         */
        private Boolean status;
        private Integer code;
        private String message;
        private WrapperInfoRes data;

    }

    @Data
    public static class WrapperInfoRes {
        private Integer total;
        private Integer page;
        private Integer rows;
        private Integer message;
        private List<SocialInsuranceInfo> list;
    }

    @Data
    public static class SocialInsuranceInfo {
        //        @ApiModelProperty("个人编号（社保系统）")
        @JsonProperty("AAC001")
        private String personalNum;

        //        @ApiModelProperty("公民身份号码")
        @JsonProperty("AAC002")
        private String idCard;

        //        @ApiModelProperty("单位社保系统编号")
        @JsonProperty("AAB001")
        private String companyNum;

        //        @ApiModelProperty("共享批次号，解决全量数据推送的批次问题，可选择是否发布与接收")
        @JsonProperty("SDC_BATCH_NO")
        private String batchNo;

        //        @ApiModelProperty("个人应缴金额")
        @JsonProperty("AAE022")
        private String payment;

        //        @ApiModelProperty("险种类型")
        @JsonProperty("AAE140")
        private String insuranceType;

        //        @ApiModelProperty("缴费年月")
        @JsonProperty("AAE041")
        private String date;

        //        @ApiModelProperty("缴费基数")
        @JsonProperty("AAE180")
        private String paymentBase;

        //        @ApiModelProperty("姓名")
        @JsonProperty("AAC003")
        private String name;

        //        @ApiModelProperty("单位名称")
        @JsonProperty("AAB004")
        private String companyName;

        //        @ApiModelProperty("行政区划代码")
        @JsonProperty("AAB301")
        private String districtCode;

        //        @ApiModelProperty("缴费状态")
        @JsonProperty("AAC037")
        private String paymentStatus;
    }
}
